package cn.caskm.souvenirshopsystem.service;

import cn.caskm.souvenirshopsystem.domain.Result;
import cn.caskm.souvenirshopsystem.domain.dto.PageDTO;
import cn.caskm.souvenirshopsystem.domain.po.GoodsOrder;
import cn.caskm.souvenirshopsystem.domain.query.MyOrderQuery;
import cn.caskm.souvenirshopsystem.domain.query.PageQuery;
import cn.caskm.souvenirshopsystem.domain.vo.MyOrderVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface GoodsOrderService extends IService<GoodsOrder> {

    Result<PageDTO<GoodsOrder>> page(PageQuery query);
    
    Result<List<GoodsOrder>> getAll();

    Result<GoodsOrder> detail(Integer id);

    void saveOrUpdateEntity(GoodsOrder goodsOrder);

    Integer submitOrder(Integer goodsId, Integer goodsNum, Long userCouponId);

    PageDTO<MyOrderVO> listMyOrder(MyOrderQuery query);

}
